package com.vehicle.repair.repository;

import com.vehicle.repair.model.Repairer;
import com.vehicle.repair.model.WorkLog;
import com.vehicle.repair.model.WorkOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface WorkLogRepository extends JpaRepository<WorkLog, Integer> {
    List<WorkLog> findByOrder(WorkOrder order);
    
    List<WorkLog> findByOrder_OrderId(Integer orderId);
    
    List<WorkLog> findByRepairer(Repairer repairer);
    
    List<WorkLog> findByRepairer_RepairerId(Integer repairerId);
}
